package com.situ.mall.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.situ.mall.admin.entity.Type;
import com.situ.mall.admin.mapper.TypeMapper;
import com.situ.mall.admin.service.ITypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yangkx
 * @create 2023-09-09-9:41
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper,Type> implements ITypeService {

    //发请求去查分类数据
    @Override
    public List<Type> all() {
        //QueryWrapper<Type> typeQueryWrapper = new QueryWrapper<>();
        //typeQueryWrapper.like("name", name);
        //return baseMapper.selectList(typeQueryWrapper);
        return baseMapper.all();
    }
}
